package com.poh.mapper;

import com.poh.pojo.Course;
import com.poh.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CouserMapper {
    List<Course> getCourseByUserId(@Param("userId") int userId);
    List<Course> getCourseByTeach(@Param("userId") int userId);
    int createCourse(Course course);
    Course getCourseByCourseId(@Param("courseId") int courseId);
    int updateImgByCourseId(@Param("courseId") int courseId, @Param("courseImg") String courseImg);

}
